package com.xiaoli.computertest.action;

import static com.xiaoli.computertest.model.ActionType.INPUT_NUMBER;

import com.xiaoli.computertest.model.ActionType;
import com.xiaoli.computertest.model.ActionValue;

public class Action {
	
	public Action(){
		recordString = new StringBuffer();
	}
	
	public void inputString(char inputInfo){
		recordString.append(inputInfo);
	}
	

	public void inputClear(ActionValue actionValue){
		recordString.substring(recordString.length()-1);
	}
	
	public char getLastString(){
		return recordString.charAt(recordString.length()-1);
	}
	
	public ActionType getTopInputType(){
		return INPUT_NUMBER;
	}
	
	private StringBuffer recordString;
	
}
